import Vue from "vue";
import { SvgIcon } from "@/components"; // svg组件

// register globally
Vue.component("svg-icon", SvgIcon);

// 设置icons/svg下面的图片自动导入
const requireAll = requireContext => requireContext.keys().map(requireContext);
const req = require.context("./svg", false, /\.svg$/);
requireAll(req);

export default req;
